home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 1 / Cream of the Crop 1.iso / PROGRAM / CUJ9102.ARJ / 9N02012A < prev    next >
Text File  |  1992-07-06  |  976b  |  46 lines

  1. Listing 1
  2.  
  3. /* limits.h standard header -- 8-bit version
  4.  * copyright (c) 1991 by P.J. Plauger
  5.  */
  6. #ifndef _LIMITS
  7. #define _LIMITS
  8. #ifndef _YVALS
  9. #include <yvals.h>
  10. #endif
  11.         /* char properties */
  12. #define CHAR_BIT    8
  13. #if _CSIGN
  14. #define CHAR_MAX    127
  15. #define CHAR_MIN    (-127-_2C)
  16. #else
  17. #define CHAR_MAX    255
  18. #define CHAR_MIN    0
  19. #endif
  20.         /* int properties */
  21. #if _ILONG
  22. #define INT_MAX        2147483647
  23. #define INT_MIN        (-2147483647-_2C)
  24. #else
  25. #define INT_MAX        32767
  26. #define INT_MIN        (-32767-_2C)
  27. #endif
  28.         /* long properties */
  29. #define LONG_MAX    2147483647
  30. #define LONG_MIN    (-2147483647-_2C)
  31.         /* multibyte properties */
  32. #define MB_LEN_MAX    _MBMAX
  33.         /* signed char properties */
  34. #define SCHAR_MAX    127
  35. #define SCHAR_MIN    (-127-_2C)
  36.         /* short properties */
  37. #define SHRT_MAX    32767
  38. #define SHRT_MIN    (-32767-_2C)
  39.         /* unsigned properties */
  40. #define UCHAR_MAX    255
  41. #define UINT_MAX    4294967295
  42. #define ULONG_MAX    4294967295
  43. #define USHRT_MAX    65535
  44. #endif
  45.  
  46.